ActionExecutingContext result response return

80

ActionExecutingContext result response return -

public override void OnActionExecuting(ActionExecutingContext context)
{
  context.Result = new UnauthorizedObjectResult("user is unauthorized");
}

Comments

Submit
0 Comments